<%--
  Created by IntelliJ IDEA.
  User: root
  Date: 2020/3/27
  Time: 14:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="${pageContext.request.contextPath}/user/batchAdd" method="post">


    <table>
        <tr>
            <td>用户id</td>
            <td>用户名</td>
            <td>性别</td>
        </tr>

        <tr>
            <td><input type="text" name="userList[0].userId"/></td>
            <td><input type="text" name="userList[0].userName"/></td>
            <td><input type="text" name="userList[0].gender"/></td>

        </tr>
        <tr>
            <td><input type="text" name="userList[1].userId"/></td>
            <td><input type="text" name="userList[1].userName"/></td>
            <td><input type="text" name="userList[1].gender"/></td>
        </tr>

        <tr>
            <td><input type="text" name="userList[2].userId"/></td>
            <td><input type="text" name="userList[2].userName"/></td>
            <td><input type="text" name="userList[2].gender"/></td>
        </tr>

    </table>

    <input type="submit" value="批量保存">

</form>


</body>
</html>